package com.finance.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.finance.dao.ProductDao;
import com.finance.entity.Product;

@Service("adminProductService")
public class ProductService {

	@Resource(name = "adminProductDao")
	private ProductDao productDao;

	public void add(Product product) {
		productDao.add(product);
	}

	public List<Product> productList() {
		return productDao.productList();
	}

}
